from collections import Counter

name_str = 'pythonjavapythonjoioivohjckqihbkv'
a = Counter(name_str)
print(a)
a.update('ppppppppp')
print(a.most_common(2))